package com.stake.model;

import com.google.code.linkedinapi.schema.impl.PersonImpl;
import com.stake.entity.UserInfo;

public class UserInfoView extends PersonImpl{
	
	/**
	 * 
	 */
	private static final long serialVersionUID = 1L; 
	private String email;
	private Long userKey;
	
	public void copyPropsFrom(UserInfo user){
		this.setEmail(user.getEmail());
		this.setFirstName(user.getFirstName());
		this.setLastName(user.getLastName());
		this.setPictureUrl(user.getProfilePictureUrl());
		this.setUserKey(user.getKey().getId());
	}

	/**
	 * @return the email
	 */
	public String getEmail() {
		return email;
	}

	/**
	 * @param email the email to set
	 */
	public void setEmail(String email) {
		this.email = email;
	}

	/**
	 * @return the userKey
	 */
	public Long getUserKey() {
		return userKey;
	}

	/**
	 * @param userKey the userKey to set
	 */
	public void setUserKey(Long userKey) {
		this.userKey = userKey;
	}

}
